'libtgfx - Threaded Graphics library for FreeBASIC
'Copyright (C) 2013  Ebben Feagan <sir@mud.owlbox.net>
'
'This library is free software; you can redistribute it and/or
'modify it under the terms of the GNU Lesser General Public
'License as published by the Free Software Foundation; either
'version 2.1 of the License, or (at your option) any later version.
'
'This library is distributed in the hope that it will be useful,
'but WITHOUT ANY WARRANTY; without even the implied warranty of
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
'Lesser General Public License for more details.
'
'You should have received a copy of the GNU Lesser General Public
'License along with this library; if not, write to the Free Software
'Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

namespace tgfx.mouse

        enum button
            MLEFT = &h1
            MRIGHT = &h2
            MMIDDLE = &h4
            MX1 = &h8
            MX2 = &h10
        end enum

        declare sub get(    byref x as integer, _
                            byref y as integer, _
                            byref wheel as integer = 0, _
                            byref btns as integer = 0, _
                            byref clip as integer = 0 _
                        )

        declare sub set(    byval x as integer = -1, _
                            byval y as integer = -1, _
                            byval visible as integer = -1, _
                            byval clip as integer = -1 _
                        )
    end namespace
